package HomeWork;

import java.util.Random;

public class Test_Throw {
    public static void main(String[] args) {
        int count = 5000;
        int[] num = new int[6];
        Random rand = new Random();
        while(count>0) {
            int tmp = rand.nextInt(6);
            num[tmp]++;
            count--;
        }
        count = 1;
        for(int x : num) {
            System.out.println(count+"出现了"+x+"次");
            count++;
        }
    }
}
